// main.js
import { createApp } from 'vue'
import { createRouter, createWebHistory } from 'vue-router'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

const router = createRouter({
  history: createWebHistory(),
  routes: [
    { path: '/parts', component: () => import('./views/PartView.vue') },
    { path: '/raws', component: () => import('./views/RawView.vue') },
    { path: '/pattern', component: () => import('./views/PatternView.vue') },
    { path: '/', redirect: '/parts' }
  ]
})

const app = createApp(App)
app.use(ElementPlus)
app.use(router)
app.mount('#app')